package com.lcf.system.vo;

import com.lcf.framework.annotation.DictFile;
import com.lcf.framework.annotation.DictTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 购物车(GoodsCart)表实体类
 *
 * @author lcf
 * @since 2025-05-02 11:55:00
 */
@Data
@NoArgsConstructor
public class GoodsCartVO {
    //id
    @Schema(description = "id")
    private Long id;
    //商品id
    @Schema(description = "商品id")
    @DictTable(tableName = "goods", primaryKey = "id",
            fields = {"goods_name", "goods_price", "goods_img", "goods_spec"},
            nameField = {"goodsName", "goodsPrice", "goodsImg", "goodsSpec"})
    private Long goodsId;
    //物品数量
    @Schema(description = "物品数量")
    private Integer goodsNum;
    //商品名称
    @Schema(description = "商品名称")
    private String goodsName;
    //商品单价
    @Schema(description = "商品单价")
    private BigDecimal goodsPrice;
    //商品图片
    @Schema(description = "商品图片")
    @DictFile
    private String goodsImg;
    //规格
    @Schema(description = "规格")
    private String goodsSpec;
}

